
#include "admin.h"
int main(int argc, char const *argv[])
{
	// 创建一个容器
	admin a_123;

	// 插入书籍
	a_123.add_book(book("斗破苍穹", "天蚕土豆", 30, 0));
	a_123.add_book(book("斗罗大陆", "唐家三少", 20, 0));
	a_123.add_book(book("完美世界", "辰东", 20, 0));
	a_123.add_book(book("武动乾坤", "天蚕土豆", 20, 0));

	// 删除书籍
	string name = "斗破苍穹";
	a_123.delete_book(name);

	// 遍历书籍
	a_123.view_all_books();

	// 查找
	cin >> name;
	book temp_book = a_123.search_book(name);
	cout << temp_book.get_author() << endl;
	return 0;
}
